/*
 * @Descripttion: 描述
 * @Author: 刘黎
 * @Date: 2024-07-01 14:31:06
 * @LastEditors: 刘黎
 * @LastEditTime: 2024-07-23 15:33:57
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import legacy from '@vitejs/plugin-legacy';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    legacy({
      targets: ["ie>=11"],
      additionalLegacyPolyfills: ["regenerator-runtime/runtime"],
    }),
    vue()
  ],
  server: {	
    host: '0.0.0.0'
  },
  base: process.env.NODE_ENV === 'production' ? './' : '/',
  resolve: {
    alias: {
      '@': '/src', // 配置@路径别名
    },
  },
})
